#include "pch.h"
#include <stdlib.h>
#include "stdio.h"
#include "CppUnitTest.h"
#include "../add/add.h"
#include "../mul/mul.h"
#include "../sub/sub.h"
#include "../div/div.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;

namespace text
{
	TEST_CLASS(text)
	{
	public:
		
		TEST_METHOD(TestMethod1)
		{
		
			Assert::AreEqual(5, add(2, 3));
			Assert::AreEqual(0, add(INT_MAX, 1));
			Assert::AreEqual(0, add(INT_MIN, -1));
			
		}
		TEST_METHOD(TestMethod2)
		{
			Assert::AreEqual(5, sub(10, 5));
			Assert::AreEqual(0, sub(INT_MIN, 100));
					
		}
		TEST_METHOD(TestMethod3)
		{
			Assert::AreEqual(15, mul(5, 3));
			Assert::AreEqual(0, mul(INT_MAX, 1000));
			Assert::AreEqual(0, mul(INT_MAX, -1000));
			Assert::AreEqual(0, mul(INT_MIN, 1000));
			Assert::AreEqual(0, mul(INT_MIN, -1000));
		}
		TEST_METHOD(TestMethod4)
		{
			Assert::AreEqual(7, divv(14, 2));
			Assert::AreEqual(0, divv(10, 0));
			Assert::AreEqual(0, divv(INT_MIN, -1));
		}



		
		
		

	};
}
